package cn.wyz.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.wyz.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author WuyuZ
 * @since 2022-06-12
 */
@Data
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "店铺座机" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "注册时间" ,orderNum = "3", width = 50, isImportField = "true_st",databaseFormat = "yyyy-MM-dd HH-mm-ss",format ="yyyy-MM-dd" )
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1以审核，-1驳回，2待激活,3已激活
     */
    @Excel(name = "店铺状态" ,orderNum = "4", width = 30, isImportField = "true_st",replace = {"待审核_0","已审核_1","驳回_-1","待激活_2","已激活_3"})
    private Integer state = 0;
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "logo" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    @Excel(name = "管理员" ,orderNum = "7", width = 30, isImportField = "true_st")
    private Long adminId;

    private Employee admin;

    private List<ShopAuditLog> logs;
}
